<div class="panel panel-default">
  	<div class="panel-heading">
    	<h3 class="panel-title">后台管理</h3>
  	</div>
  	<div class="panel-body">
		<table class="table table-bordered">
			<colgroup>
				<col class="col-xs-1">
				<col class="col-xs-7">
			</colgroup>
			<tr>
				<td>当前用户：</td>
				<td><?php echo Yii::app()->user->name; ?></td>
			</tr>
			<tr>
				<td>登录时间：</td>
				<td><?php echo date('Y-m-d H:i:s', Yii::app()->session['login_time']); ?></td>
			</tr>
			<tr>
				<td>登录IP：</td>
				<td><?php echo Yii::app()->request->userHostAddress; ?></td>
			</tr>
		</table>
  	</div>
</div>
<div class="panel panel-default">
  	<div class="panel-heading">
    	<h3 class="panel-title">服务器信息</h3>
  	</div>
  	<div class="panel-body">
		<table class="table table-bordered">
			<colgroup>
				<col class="col-xs-1">
				<col class="col-xs-7">
			</colgroup>
			<tr>
				<td>服务器环境：</td>
				<td><?php echo $_SERVER['SERVER_SOFTWARE'];?></td>
			</tr>
			<tr>
				<td>PHP版本：</td>
				<td><?php echo PHP_VERSION;?></td>
			</tr>
			<tr>
				<td>服务器IP：</td>
				<td><?php echo $_SERVER['SERVER_ADDR'];?></td>
			</tr>
			<tr>
				<td>数据库信息：</td>
				<td><?php echo mysql_get_client_info(); ?></td>
			</tr>
		</table>
  	</div>
</div>